package com.lianxi.nmms.service;

import com.github.pagehelper.PageInfo;
import com.lianxi.nmms.entity.Staff;
import com.lianxi.nmms.exception.*;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * 翔哥
 * 2025年09月28日
 */
public interface StaffService {

    PageInfo<Staff> findPage(Staff staffAll,String pageNo, String pageSize);

    List<Staff> findAll();

    Staff login(String loginName,String password,String role,String code,String image) throws RequestParameterErrorException, CodeErrorException, StaffNotExistException;

    //显示默认值
    Staff findStaffById(String id) throws RequestParameterErrorException;

    //添加管理员
    void addStaff(String name, String loginName , String password , String phone , String email, String role , String deptId,HttpSession session) throws RequestParameterErrorException, loginErrorException;


    //修改管理员
    void updateStaff(String id,String name , String phone , String email, String role , String deptId) throws RequestParameterErrorException;


    //开启管理员
    void enableStaff(String id) throws RequestParameterErrorException, DeptStatusErrorException;

    //禁用
    void disableStaff(String id) throws RequestParameterErrorException;


   }
